package com.innazis.jfrogsurvey.config;

/**
 * Created by Inna on 03.06.14.
 */
public final class Constants {

    // ======== WEBSERVICE URL=========== //
    //public static final String API_DOMAIN ="http://stranas.zapto.org/";
    public static final String API_DOMAIN ="http://jfrog.hinamis.com/";
    public static final String URL_UPDATE_TABLES =API_DOMAIN+ "api.svc/jfrog_update_application/";
    public static final String URL_SEND_DATA =API_DOMAIN+ "api.svc/jfrog_submit_app_data/";

    // =============== DB ==================== //
    public static final String DATABASE_NAME = "jfrog.db";
    public static final String TBL_SURVEYS = "tbl_surveys";
    public static final String TBL_QUESTIONS = "tbl_questions";
    public static final String TBL_ANSWERS = "tbl_answers";
    public static final int DATABASE_VERSION = 2;

    // =========== DB PARAMETERS ============= //
    // SURVEYS
    public static final String survey_id_p = "survey_id";
    public static final String survey_name_p = "survey_name";
    public static final String survey_title_p = "survey_title";
    public static final String questions_num_p = "questions_num";
    public static final String is_sent_p = "is_sent";
    public static final String question_id_p = "question_id";
    public static final String question_title_p = "question_title";
    public static final String question_order_p = "question_order";
    public static final String answers_num_p = "answers_num";
    public static final String answer_id_p = "answer_id";
    public static final String answer_order_p = "answer_order";
    public static final String answer_text_p = "answer_text";
    public static final String object_name_p = "object_name";
    public static final String answers_list_p = "answers_list";
    public static final String questions_list_p = "questions_list";
    public static final String submitted_datetime_p = "submitted_datetime";
    public static final String is_checked_p = "is_checked";
    public static final String submit_survey_obj_p = "SubmitSurveyObj";
    public static final String sender_id_p = "senderID";
    public static final String user_data_p = "user_data";
    public static final String data_p = "data";

    // ============ SEND DATA =========== //
    public static final String return_code_p = "return_code";
    public static final String message_p = "message";
    public static final String update_surveys_p = "update_surveys";

    // ============ STATUSES ============ //
    public static final int SUCCESS = 1;
    public static final int FAILED = -1;

    // ============= UTIL ============= //
    public static final int SYNC_INTERVAL = 60 * 60 * 1000;
    public static final int SYNC_INTERVAL_DELAY = 5000;
    public static final int MAX_ATTEMPTS = 3;

    // ============= UI =============== //
    public static final String radio_p = "radio";
    public static final String check_p = "check";

    // ============ FILE NAMES =============== //
    public static final String PREFERENCES_FILENAME = "Preferences";
    public static final String USER = "USER";
}
